home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazine Rack
/
Magazine Rack.iso
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-14
|
9KB
|
229 lines
echo off
rem Magazine Rack Installation Procedure - Version 1.01 - Disc 1.0
rem March 14, 1991 - GJE
cls
if not exist \mrdisc.001 goto wrong_disc
if %1' == ' goto help
echo ════════════════════════════════════════════════════════════════════════
echo Information Access Company
echo MAGAZINE RACK
echo Hard Disk Installation Procedure
echo ════════════════════════════════════════════════════════════════════════
echo Checking your %1 disk drive... please wait.
if %1 == c: goto start
if %1 == C: goto start
if %1 == d: goto start
if %1 == D: goto start
if %1 == e: goto start
if %1 == E: goto start
if %1 == f: goto start
if %1 == F: goto start
if %1 == g: goto start
if %1 == G: goto start
if %1 == h: goto start
if %1 == H: goto start
if %1 == i: goto start
if %1 == I: goto start
if %1 == j: goto start
if %1 == J: goto start
if %1 == k: goto start
if %1 == K: goto start
if %1 == l: goto start
if %1 == L: goto start
if %1 == m: goto start
if %1 == M: goto start
if %1 == n: goto start
if %1 == N: goto start
if %1 == o: goto start
if %1 == O: goto start
if %1 == p: goto start
if %1 == P: goto start
if %1 == q: goto start
if %1 == Q: goto start
if %1 == r: goto start
if %1 == R: goto start
if %1 == s: goto start
if %1 == S: goto start
if %1 == t: goto start
if %1 == T: goto start
if %1 == u: goto start
if %1 == U: goto start
if %1 == v: goto start
if %1 == V: goto start
if %1 == w: goto start
if %1 == W: goto start
if %1 == x: goto start
if %1 == X: goto start
if %1 == y: goto start
if %1 == Y: goto start
if %1 == z: goto start
if %1 == Z: goto start
if %1 == a: goto start
if %1 == a: goto start
if %1 == b: goto start
if %1 == B: goto start
goto bad_letter
rem
:start
if not exist %1\nul goto bad_drive
rem
cls
echo ════════════════════════════════════════════════════════════════════════
echo MAGAZINE RACK - Hard Disk Installation Procedure
echo ════════════════════════════════════════════════════════════════════════
echo This installation procedure is optional. You can run Magazine Rack
echo directly on your CD-ROM drive without installing any files to your hard
echo disk. To do so, type the following at the DOS prompt:
echo
echo R: ─┘ where "R:" is your CD-ROM drive
echo MAGRACK ─┘ ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
echo If you would like to select a certain printer for use with Magazine Rack,
echo or if you would like to change Magazine Rack default parameters described
echo in the online user's manual, you should continue with this installation
echo procedure.
echo ────────────────────────────────────────────────────────────────────────
echo This installation procedure will create a directory called \MAGRACK on
echo your %1 drive and copy the Magazine Rack software into it. About 250K
echo bytes on your disk will be used. NOTE: You can also install to a
echo diskette if you wish.
echo ────────────────────────────────────────────────────────────────────────
echo You may abort this installation procedure now by pressing Ctrl-C, or
pause
cls
echo ════════════════════════════════════════════════════════════════════════
echo Installing MAGAZINE RACK
echo ════════════════════════════════════════════════════════════════════════
echo Creating %1\MAGRACK directory...
echo ────────────────────────────────────────────────────────────────────────
if not exist %1\magrack\nul goto continue
echo PLEASE NOTE!
echo ────────────────────────────────────────────────────────────────────────
echo The %1\MAGRACK directory already exists. Magazine Rack may have already
echo been installed.
echo
echo You may abort this installation procedure now by pressing Ctrl-C, or
pause
:continue
if not exist %1\magrack\nul md %1\magrack
echo Copying files to %1\MAGRACK...
echo ────────────────────────────────────────────────────────────────────────
copy \magrack.bat %1\magrack >nul
if not exist %1\magrack\magrack.bat goto error
copy \magrackm.bat %1\magrack >nul
if not exist %1\magrack\magrackm.bat goto error
copy \views.cfg %1\magrack >nul
if not exist %1\magrack\views.cfg goto error
if not exist %1\magrack\views.ptr copy \views.ptr %1\magrack >nul
if not exist %1\magrack\views.ptr goto error
if not exist %1\magrack\previews.exe copy \previews.exe %1\magrack >nul
if not exist %1\magrack\previews.exe goto error
rem
echo INSTALLATION COMPLETE!
echo ════════════════════════════════════════════════════════════════════════
echo To run Magazine Rack, type the following at the DOS prompt:
echo
echo %1 ─┘
echo CD \MAGRACK ─┘
echo MAGRACK R: ─┘
echo where "R:" is your CD-ROM drive letter
echo ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
%1
cd \magrack
pause
goto check
rem
:wrong_disc
echo ════════════════════════════════════════════════════════════════════════
echo PLEASE NOTE!
echo ════════════════════════════════════════════════════════════════════════
echo Please make the CD-ROM drive containing Magazine Rack the default drive
echo before running this installation procedure.
echo
echo To do so, type the following at the DOS prompt:
echo
echo R: ─┘
echo where "R:" is your CD-ROM drive
echo ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
goto check
rem
:error
echo ════════════════════════════════════════════════════════════════════════
echo ERROR!
echo ════════════════════════════════════════════════════════════════════════
echo The installation procedure could not copy the Magazine Rack software to
echo your %1 hard disk drive.
echo
echo Before trying the installation procedure again, please verify that
echo %1 is a valid drive letter and that there is at least 250K bytes of
echo available space on that hard disk drive.
echo ────────────────────────────────────────────────────────────────────────
goto exit
rem
:check
if not exist %1\mrdisc.001 goto exit
echo ════════════════════════════════════════════════════════════════════════
echo PLEASE NOTE!
echo ════════════════════════════════════════════════════════════════════════
echo Your %1 drive contains a file called MRDISC.001 in the root directory
echo (%1\). Please delete or rename this file or Magazine Rack may not
echo run correctly.
echo ────────────────────────────────────────────────────────────────────────
echo To delete this file, type the following at the DOS prompt:
echo
echo DEL %1\MRDISC.001 ─┘
echo
echo
echo To rename this file, type the following at the DOS prompt:
echo
echo REN %1\MRDISC.001 NEWNAME ─┘
echo where "NEWNAME" is any
echo valid DOS filename.
echo
echo ─┘ means press the
echo Enter key
echo ────────────────────────────────────────────────────────────────────────
goto exit
rem
:bad_letter
echo ════════════════════════════════════════════════════════════════════════
echo ERROR!
echo ════════════════════════════════════════════════════════════════════════
echo The drive letter you specified, %1, is not a valid DOS drive letter,
echo followed by a colon (:).
echo
echo Please try this installation procedure again, using a valid DOS drive
echo letter.
echo
echo Make sure you type a colon (:) after the drive letter.
echo ────────────────────────────────────────────────────────────────────────
goto exit
:bad_drive
echo ════════════════════════════════════════════════════════════════════════
echo ERROR!
echo ════════════════════════════════════════════════════════════════════════
echo The hard disk drive you specified, %1, does not exist or cannot be
echo accessed.
echo
echo Please try this installation procedure again, using a different hard
echo disk drive.
echo ────────────────────────────────────────────────────────────────────────
goto exit
:help
echo ════════════════════════════════════════════════════════════════════════
echo PLEASE NOTE!
echo ════════════════════════════════════════════════════════════════════════
echo You must specify the hard disk drive where you wish to install the
echo Magazine Rack software.
echo ────────────────────────────────────────────────────────────────────────
echo To do so, type the following:
echo
echo INSTALL C: ─┘
echo where "C:" is your hard disk drive
echo ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
rem
:exit